package com.stt.experiment.trynetty.buffer;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString(callSuper = true)
public abstract class AbstractRequestBuffer extends AbstractBuffer{

    private static final long serialVersionUID = -8126467513688740917L;

    protected JSONObject data; // 请求参数

    @Override
    public String toJsonString() {
        return JSON.toJSONString(this);
    }
}
